home *** CD-ROM | disk | FTP | other *** search
- Jeffrey Richter's Spin Button
- Form1
- Entry
- SpinButton
- Sample
- Swatch
- CLabel
- wwwwp
- wwwwp
- wwwwp
- "wwww
- CLabel
- Green:
- Entry
- SpinButton
- Sample
- wwww~
- wwwwp
- wwwwp
- wwwwp
- CLabel
- Blue:
- Entry
- SpinButton
- Sample
- GetTickCount!
- GetAsyncKeyState
- Colors
- Form_Load
- SpinButton
- Picture-
- EntryU
- Height
- Sample
- BackColor
- Swatchh
- Entry_KeyPress
- Index
- KeyAscii
- Entry_Change
- SpinButton_MouseDownm
- Button
- Shift
- VK_LBUTTON
- TIME_DELAY
- dwEvent
- SpinIt
- Break
- Swatch_Click
- Text1
- Text2
- Text3
- Form_Unload
- Cancelt
- Jeffrey M. Richter's Spin Button Control from Windows 3: A Developer's Guiden
- Adapted for Visual Basic by Costas Kitsos with Mr. Richter's kind permissionn
- Windows API functions used by the Spin Button Control
- Shared Integer Array holding the RGB Colors
- Form_Load
- Set to the Normal Spin Buttonr
- Make sure Control heights match'
- Initial value is in the Mid Range'
- Each color is set to 128
- Set the Colors
- Entry_KeyPress
- Accept only numeric input and the backspace keyh
- Entry_Change
- The Max value of any color can be 255k
- Update the Array
- Update the Sample Picture box colors
- Update the Swatch Picture box color
- SpinButton_MouseDown
- Time delay between Spin Button Events
- Make sure that the Spin Button Event occurs at least once
- Do this while the user holds down the left mouse button
- Break out of the loop if we haven't waited long enoughn
- If the user wants to increment the counter
- Set Picture to Up
- Exit if value is equal to Max (255)
- Update the Entry TextBox
- Perform the changes
- If the user wants to decrement the counter
- Set Picture to Down
- Exit if value is equal to Min (0)
- Update the Entry TextBoxo
- Perform the changes
- Save the last time the Spin Button was active
- Set the Picture to Normal
- Set the focus to the Entry TextBox
- We're Done
- Swatch_Click
- Spin Button Control"
- From 'Windows 3: A Developer's Guide'"
- by Jeffrey M. Richter, M&T Books 1991"
- Adapted for Visual Basic by Costas Kitsos"
- with permission from the author.
- About Spin Button"
- Form_Unload
-